<template>
    <div>
      <h2>党建地点</h2>
      <!-- 显示地点信息 -->
      <ul>
        <li v-for="location in locations" :key="location.id">
          {{ location.name }}
        </li>
      </ul>
    </div>
  </template>
  
  <script setup>
  import { defineProps } from 'vue';
  
  const props = defineProps({
    locations: {
      type: Array,
      required: true
    }
  });
  </script>
  
  <style scoped>
  /* 在这里添加样式 */
  </style>
  